/// 医生个人信息
class DrProfileData {
  DoctorData? doctor;
  IdentityData? identity;

  DrProfileData({this.doctor, this.identity});

  DrProfileData.fromJson(Map<String, dynamic> json) {
    if (json["doctor"] is Map) {
      doctor = json["doctor"] == null ? null : DoctorData.fromJson(json["doctor"]);
    }
    if (json["identity"] is Map) {
      identity =
          json["identity"] == null ? null : IdentityData.fromJson(json["identity"]);
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    if (doctor != null) {
      _data["doctor"] = doctor?.toJson();
    }
    if (identity != null) {
      _data["identity"] = identity?.toJson();
    }
    return _data;
  }
}

class IdentityData {
  int? id;
  String? createTime;
  String? createBy;
  String? userId;
  String? realName;
  String? gender;
  String? phone;
  String? idcardNo;
  String? photo01;
  String? photo02;
  String? nation;
  String? birthday;
  String? address;
  String? issue;
  String? verifiedFlag;
  dynamic updateTime;
  String? delFlag;

  IdentityData(
      {this.id,
      this.createTime,
      this.createBy,
      this.userId,
      this.realName,
      this.gender,
      this.phone,
      this.idcardNo,
      this.photo01,
      this.photo02,
      this.nation,
      this.birthday,
      this.address,
      this.issue,
      this.verifiedFlag,
      this.updateTime,
      this.delFlag});

  IdentityData.fromJson(Map<String, dynamic> json) {
    if (json["id"] is int) {
      id = json["id"];
    }
    if (json["createTime"] is String) {
      createTime = json["createTime"];
    }
    if (json["createBy"] is String) {
      createBy = json["createBy"];
    }
    if (json["userId"] is String) {
      userId = json["userId"];
    }
    if (json["realName"] is String) {
      realName = json["realName"];
    }
    if (json["gender"] is String) {
      gender = json["gender"];
    }
    if (json["phone"] is String) {
      phone = json["phone"];
    }
    if (json["idcardNo"] is String) {
      idcardNo = json["idcardNo"];
    }
    if (json["photo01"] is String) {
      photo01 = json["photo01"];
    }
    if (json["photo02"] is String) {
      photo02 = json["photo02"];
    }
    if (json["nation"] is String) {
      nation = json["nation"];
    }
    if (json["birthday"] is String) {
      birthday = json["birthday"];
    }
    if (json["address"] is String) {
      address = json["address"];
    }
    if (json["issue"] is String) {
      issue = json["issue"];
    }
    if (json["verifiedFlag"] is String) {
      verifiedFlag = json["verifiedFlag"];
    }
    updateTime = json["updateTime"];
    if (json["delFlag"] is String) {
      delFlag = json["delFlag"];
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["id"] = id;
    _data["createTime"] = createTime;
    _data["createBy"] = createBy;
    _data["userId"] = userId;
    _data["realName"] = realName;
    _data["gender"] = gender;
    _data["phone"] = phone;
    _data["idcardNo"] = idcardNo;
    _data["photo01"] = photo01;
    _data["photo02"] = photo02;
    _data["nation"] = nation;
    _data["birthday"] = birthday;
    _data["address"] = address;
    _data["issue"] = issue;
    _data["verifiedFlag"] = verifiedFlag;
    _data["updateTime"] = updateTime;
    _data["delFlag"] = delFlag;
    return _data;
  }
}

class DoctorData {
  int? id;
  String? createTime;
  String? createBy;
  String? userId;
  String? doctorNo;
  int? doctorType;
  String? doctorNick;
  String? phone;
  String? hospNo;
  String? deptNo01;
  String? deptName01;
  dynamic deptNo02;
  dynamic deptName02;
  String? profilePhoto;
  int? title;
  int? duty;
  String? gpFlag;
  int? phd;
  String? schoolName;
  String? personalProfile;
  String? excelAt;
  String? rxRight;
  String? verifiedFlag;
  dynamic qrcodePhoto;
  int? workingStatus;
  dynamic updateTime;
  String? delFlag;
  String? certLicenseMain;
  String? certLicenseSub;
  String? certTitleMain;
  String? certTitleSub;
  dynamic certDrqMain;
  dynamic certDrqSub;
  String? expertField;
  String? hospitalName;
  String? titleName;
  String? dutyName;

  DoctorData(
      {this.id,
      this.createTime,
      this.createBy,
      this.userId,
      this.doctorNo,
      this.doctorType,
      this.doctorNick,
      this.phone,
      this.hospNo,
      this.deptNo01,
      this.deptName01,
      this.deptNo02,
      this.deptName02,
      this.profilePhoto,
      this.title,
      this.duty,
      this.gpFlag,
      this.phd,
      this.schoolName,
      this.personalProfile,
      this.excelAt,
      this.rxRight,
      this.verifiedFlag,
      this.qrcodePhoto,
      this.workingStatus,
      this.updateTime,
      this.delFlag,
      this.certLicenseMain,
      this.certLicenseSub,
      this.certTitleMain,
      this.certTitleSub,
      this.certDrqMain,
      this.certDrqSub,
      this.expertField,
      this.hospitalName,
      this.titleName,
      this.dutyName});

  DoctorData.fromJson(Map<String, dynamic> json) {
    if (json["id"] is int) {
      id = json["id"];
    }
    if (json["createTime"] is String) {
      createTime = json["createTime"];
    }
    if (json["createBy"] is String) {
      createBy = json["createBy"];
    }
    if (json["userId"] is String) {
      userId = json["userId"];
    }
    if (json["doctorNo"] is String) {
      doctorNo = json["doctorNo"];
    }
    if (json["doctorType"] is int) {
      doctorType = json["doctorType"];
    }
    if (json["doctorNick"] is String) {
      doctorNick = json["doctorNick"];
    }
    if (json["phone"] is String) {
      phone = json["phone"];
    }
    if (json["hospNo"] is String) {
      hospNo = json["hospNo"];
    }
    if (json["deptNo01"] is String) {
      deptNo01 = json["deptNo01"];
    }
    if (json["deptName01"] is String) {
      deptName01 = json["deptName01"];
    }
    deptNo02 = json["deptNo02"];
    deptName02 = json["deptName02"];
    if (json["profilePhoto"] is String) {
      profilePhoto = json["profilePhoto"];
    }
    if (json["title"] is int) {
      title = json["title"];
    }
    if (json["duty"] is int) {
      duty = json["duty"];
    }
    if (json["gpFlag"] is String) {
      gpFlag = json["gpFlag"];
    }
    if (json["phd"] is int) {
      phd = json["phd"];
    }
    if (json["schoolName"] is String) {
      schoolName = json["schoolName"];
    }
    if (json["personalProfile"] is String) {
      personalProfile = json["personalProfile"];
    }
    if (json["excelAt"] is String) {
      excelAt = json["excelAt"];
    }
    if (json["rxRight"] is String) {
      rxRight = json["rxRight"];
    }
    if (json["verifiedFlag"] is String) {
      verifiedFlag = json["verifiedFlag"];
    }
    qrcodePhoto = json["qrcodePhoto"];
    if (json["workingStatus"] is int) {
      workingStatus = json["workingStatus"];
    }
    updateTime = json["updateTime"];
    if (json["delFlag"] is String) {
      delFlag = json["delFlag"];
    }
    if (json["certLicenseMain"] is String) {
      certLicenseMain = json["certLicenseMain"];
    }
    if (json["certLicenseSub"] is String) {
      certLicenseSub = json["certLicenseSub"];
    }
    if (json["certTitleMain"] is String) {
      certTitleMain = json["certTitleMain"];
    }
    if (json["certTitleSub"] is String) {
      certTitleSub = json["certTitleSub"];
    }
    certDrqMain = json["certDrqMain"];
    certDrqSub = json["certDrqSub"];
    if (json["expertField"] is String) {
      expertField = json["expertField"];
    }
    if (json["hospitalName"] is String) {
      hospitalName = json["hospitalName"];
    }
    if (json["titleName"] is String) {
      titleName = json["titleName"];
    }
    if (json["dutyName"] is String) {
      dutyName = json["dutyName"];
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["id"] = id;
    _data["createTime"] = createTime;
    _data["createBy"] = createBy;
    _data["userId"] = userId;
    _data["doctorNo"] = doctorNo;
    _data["doctorType"] = doctorType;
    _data["doctorNick"] = doctorNick;
    _data["phone"] = phone;
    _data["hospNo"] = hospNo;
    _data["deptNo01"] = deptNo01;
    _data["deptName01"] = deptName01;
    _data["deptNo02"] = deptNo02;
    _data["deptName02"] = deptName02;
    _data["profilePhoto"] = profilePhoto;
    _data["title"] = title;
    _data["duty"] = duty;
    _data["gpFlag"] = gpFlag;
    _data["phd"] = phd;
    _data["schoolName"] = schoolName;
    _data["personalProfile"] = personalProfile;
    _data["excelAt"] = excelAt;
    _data["rxRight"] = rxRight;
    _data["verifiedFlag"] = verifiedFlag;
    _data["qrcodePhoto"] = qrcodePhoto;
    _data["workingStatus"] = workingStatus;
    _data["updateTime"] = updateTime;
    _data["delFlag"] = delFlag;
    _data["certLicenseMain"] = certLicenseMain;
    _data["certLicenseSub"] = certLicenseSub;
    _data["certTitleMain"] = certTitleMain;
    _data["certTitleSub"] = certTitleSub;
    _data["certDrqMain"] = certDrqMain;
    _data["certDrqSub"] = certDrqSub;
    _data["expertField"] = expertField;
    _data["hospitalName"] = hospitalName;
    _data["titleName"] = titleName;
    _data["dutyName"] = dutyName;
    return _data;
  }
}

